package me.zhengjie.modules.weixin.enums;

/**
 * 微信公众号事件类型枚举
 */
public enum WeChatEventEnum {

    subscribe, unsubscribe, SCAN, LOCATION, CLICK, VIEW, view_miniprogram,text,
    user_get_card, user_del_card, user_consume_card, pic_photo_or_album, pic_weixin, pic_sysphoto, ShakearoundUserShake,
    OTHER;

    public static WeChatEventEnum get(String type) {
        for (WeChatEventEnum eventEnum : WeChatEventEnum.values()) {
            if (type.equalsIgnoreCase(eventEnum.name())) {
                return eventEnum;
            }
        }
        return OTHER;
    }
}
